package com.wanmait.recycle.mapper;

import java.util.List;

import com.wanmait.recycle.pojo.Answer;

public interface AnswerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Answer record);

    int insertSelective(Answer record);

    Answer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Answer record);

    int updateByPrimaryKeyWithBLOBs(Answer record);

    int updateByPrimaryKey(Answer record);
    
    void addAnswer(Answer answer);

    void isPick(Answer answer);

    /*前台获得enable为1的所有回答 ZQ 03.04*/
	List<Answer> findEnableAnswer();
	/*根据Id查看某一篇回答*/
	Answer findByAnswerId(Integer id);
	/*同步redis,更新点赞数量*/
	void processPraiseCount(Answer answer);}